package io.xxx.xbutler.data;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.xxx.xbutler.domain.Room;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.cursor.Cursor;

import java.util.List;

@Mapper
public interface RoomMapper extends BaseMapper<Room> {

    Cursor<Room> selectCursorByArea(@Param("areaId") Integer areaId, @Param("operateAreaId") Integer operateAreaId);

    List<Room> selectListByStoreCodes(@Param("storeCodes") List<String> storeCodes);

    List<Room> selectListByStoreIds(@Param("storeIds") List<Long> storeIds);

    List<Room> findOnlyOneRobotRooms();
}
